import request from '@/utils/request'

// 工单搜索
export const taskSearch = (params) => {
  return request({
    url: `/api/task-service/task/search`,
    params
  })
}

// 工单状态列表
export const allTaskStatus = () => {
  return request({
    url: '/api/task-service/task/allTaskStatus'
  })
}

// 获取所有工单类型
export const taskTypeList = () => {
  return request({
    url: '/api/task-service/taskType/list'
  })
}

// 创建工单
export const createTask = (data) => {
  return request({
    url: '/api/task-service/task/create',
    method: 'POST',
    data
  })
}
